from django.db import models

# Create your models here.
from utils.BaseModel import BaseModel
from user.models import UserModel
from course.models import Course


class CartModel(BaseModel):
    user = models.ForeignKey(UserModel, on_delete=models.CASCADE, verbose_name='用户')
    course = models.ForeignKey(Course, on_delete=models.CASCADE, verbose_name='课程')
    is_select = models.BooleanField(default=True, verbose_name='是否选中')

    class Meta:
        db_table = 'cart'